Automattic\WooCommerce\Blocks\Domain\Services\CheckoutFields D

Total Complexity 131
Dependencies 5
Dependents 15
Total lines 1,185
Lines of code 674
Logical lines of code 273
Comment lines 377
Methods 39
Properties 5

Methods 39

Method Rating Maintainability Complexity Lines of code
validate_options()
B
40 16 60
format_meta_data()
A
49 13 31
process_select_field()
A
45 10 42
__construct()
A
33 1 143
register_field_attributes()
A
47 7 36
get_field_from_object()
S
54 7 20
register_checkout_field()
S
48 5 35
validate_field_for_location()
S
50 5 32
get_order_additional_fields_with_values()
S
57 5 16
validate_field()
S
53 4 23
set_array_meta()
S
56 4 18
format_additional_field_value()
S
62 5 10
filter_fields_for_location()
S
59 4 14
sanitize_field()
S
56 3 19
filter_fields_for_customer()
S
57 3 18
default_validate_callback()
S
63 3 11
validate_fields_for_location()
S
57 2 17
persist_field_for_order()
S
68 3 7
process_checkbox_field()
S
64 3 9
update_default_locale_with_fields()
S
67 3 8
get_field_location()
S
67 3 8
get_fields_for_location()
S
61 2 13
get_all_fields_from_order()
S
60 2 13
get_all_fields_from_customer()
S
60 2 13
deregister_checkout_field()
S
66 2 8
add_fields_data()
S
75 1 4
filter_fields_for_order_confirmation()
S
68 1 8
default_sanitize_callback()
S
82 1 3
add_session_meta_keys()
S
79 1 3
get_core_fields()
S
82 1 3
get_field_from_order()
S
79 1 3
get_field_from_customer()
S
79 1 3
persist_field_for_customer()
S
79 1 3
get_additional_fields()
S
82 1 3
is_field()
S
79 1 3
get_additional_fields_keys()
S
80 1 3
init()
S
72 1 5
get_address_fields_keys()
S
80 1 3
get_contact_fields_keys()
S
80 1 3